package com.lawrence.service.impl;

import com.lawrence.entity.User;
import com.lawrence.service.UserService;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class UserServiceImp implements UserService {
    private int id = 0;
    private int it = 0;

    private List list;

    private Map map;

    private Set set;

    public UserServiceImp() {
    }
    public UserServiceImp(int id, int it) {
        this.id = id;
        this.it = it;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setIt(int it) {
        this.it = it;
    }

    public void setList(List list) {
        this.list = list;
    }

    public List<User> getList() {
        return list;
    }

    public Map getMap() {
        return map;
    }

    public void setMap(Map map) {
        this.map = map;
    }

    public Set getSet() {
        return set;
    }

    public void setSet(Set set) {
        this.set = set;
    }



    public List<User> selectAllUser() {
        User user1 = new User(3, "李二", "222");
        User user2 = new User(4, "李yi", "222");
        ArrayList<User> list = new ArrayList<User>();
        list.add(user1);
        list.add(user2);
        return list;
    }
}
